//
//  Macro.swift
//  newToDay
//
//  Created by 中创 on 2019/11/29.
//  Copyright © 2019 LS. All rights reserved.
//

import Foundation
import UIKit

// 屏幕宽高
let kScreenWidth = UIScreen.main.bounds.size.width
let kScreenHeight = UIScreen.main.bounds.size.height
let scale = 375.0 / kScreenWidth

// keywindow
let keyWindow = UIApplication.shared.delegate?.window

// 判断是否是iPhone
//let kIsIphone = Bool
// 导航条高度
//let kNavigationBarH =
// 状态栏高度
//let kStatusBarH = UIApplication
// 自定义颜色
func RGBColor(r:CGFloat, g:CGFloat, b:CGFloat, alpha:CGFloat) -> UIColor {
    return UIColor.init(red: r/255, green: g/255, blue: b/255, alpha: alpha)
}
func RGBColor(r:CGFloat, g:CGFloat, b:CGFloat) -> UIColor {
    return UIColor.init(red: r/255, green: g/255, blue: b/255, alpha: 1)
}
// 字号
func customFont(font:CGFloat) -> UIFont {
    return UIFont.systemFont(ofSize: font*scale)
}
